#
# Be sure to run `pod lib lint XCommonCore.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'XCommonCore'
  s.version          = '0.1.3'
  s.summary          = 'iOS基础公共库.'

  s.description      = <<-DESC
iOS Common Core Lirary
                       DESC

  s.homepage         = 'https://git.oschina.net/xw0810/XCommonCore'
# s.screenshots      = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '熊玮' => 'xw0810@163.com' }
  s.source           = { :git => 'https://git.oschina.net/xw0810/XCommonCore.git', :tag => s.version.to_s }
#  s.source           = { :path => './' }
  s.social_media_url = 'http://weibo.com/xiongwei0810'

  s.platform     = :ios, '8.0'
  s.requires_arc = true
  s.ios.deployment_target = '8.0'

#  s.source_files = 'XCommonCore/Classes/**/*'
#  s.resource_bundles = {
#    'XCommonCore' => ['XCommonCore/Assets/*.png']
#  }

  s.subspec 'Core' do |core|
     core.source_files = 'XCommonCore/Classes/Core/**/*'
     core.public_header_files = 'XCommonCore/Classes/Core/**/*.h'
  end

  s.subspec 'Utils' do |utils|
     utils.source_files = 'XCommonCore/Classes/Utils/**/*'
     utils.public_header_files = 'XCommonCore/Classes/Utils/**/*.h'
  end

  s.subspec 'Networking' do |networking|
     networking.source_files = 'XCommonCore/Classes/Networking/**/*'
     networking.public_header_files = 'XCommonCore/Classes/Networking/**/*.h'
     networking.dependency 'AFNetworking', '~> 3.1.0'
  end

#  s.public_header_files = 'XCommonCore/Classes/**/*.h'
  s.frameworks = 'Foundation', 'UIKit'

end
